package com.zy1.ssmfirst.config;

import com.zy1.ssmfirst.pojo.User;
import com.zy1.ssmfirst.pojo.project;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Configtion {
    @ConditionalOnMissingBean(User.class)
    @Bean("zy")
    public project project1 (){
        return  new project();
    }

}
